package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description
 * @Author zhaolei
 * @Date 3/29/23 4:10 PM
 * @Version 1.0
 */
public interface MallProductMapper extends BaseMapper {

    /**
     * Description: 数据软删除
     *
     * @return int
     * @author Deucalion@novax.email
     * @date 2023/2/22 16:19
     */
    int removeById(@Param("id") Long id, @Param("adminId") Long adminId);

    /**
     * @description: 扣库存
     * @author: Wade
     * @date: 2/25/23 11:28 AM
     * @param: [id]
     * @return: void
     **/
    void subStock(@Param("id") Long id);

    /**
     * @description: 加期数
     * @author: Wade
     * @date: 3/16/23 4:25 PM
     * @param: [id]
     * @return: void
     **/
    void addRound(@Param("id") Long id);
}
